import * as mongoose from 'mongoose';
import db2 from '../lib/db/mongodb2';

//备份数据
const addExportSchema2: mongoose.Schema = new mongoose.Schema({
    name_id:String,
    name_:String,
    date_:String,
    month:String,
    consumerCount_day:Number,//日均
    consumerCount_empl:Number,//人均
    comment:Number
}, { collection: 'addExport'});
export interface AddExport2 extends mongoose.Document {
    name_id:string;
    name_: string;
    date_: string;
    consumerCount_day: number;
    consumerCount_empl: number;
    month: string;
    comment: number
}
let addExportModel2 = db2.model<AddExport2>('addExport', addExportSchema2);
// let addExportModel2 = db2.model('addExport2', addExportSchema2);
export default addExportModel2;